﻿function setTab(str)
{
	switch(str)
	{
		case 'g1':{
			document.getElementById('g1').className="active";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="block";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="block";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g2':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="active";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="block";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="block";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g3':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="active";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="block";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="block";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g4':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="active";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="block";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="block";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g5':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="active";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="block";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="block";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g6':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="active";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="block";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="block";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g7':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="active";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="block";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="block";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g8':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="active";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="block";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="block";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g9':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="active";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="block";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="block";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g10':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="active";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="block";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="block";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g11':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="active";
			document.getElementById('g12').className="normal";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="block";
			document.getElementById('f12').style.display="none";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="block";
			document.getElementById('h12').style.display="none";
			break;
		}
		case 'g12':{
			document.getElementById('g1').className="normal";
			document.getElementById('g2').className="normal";
			document.getElementById('g3').className="normal";
			document.getElementById('g4').className="normal";
			document.getElementById('g5').className="normal";
			document.getElementById('g6').className="normal";
			document.getElementById('g7').className="normal";
			document.getElementById('g8').className="normal";
			document.getElementById('g9').className="normal";
			document.getElementById('g10').className="normal";
			document.getElementById('g11').className="normal";
			document.getElementById('g12').className="active";

			document.getElementById('f1').style.display="none";
			document.getElementById('f2').style.display="none";
			document.getElementById('f3').style.display="none";
			document.getElementById('f4').style.display="none";
			document.getElementById('f5').style.display="none";
			document.getElementById('f6').style.display="none";
			document.getElementById('f7').style.display="none";
			document.getElementById('f8').style.display="none";
			document.getElementById('f9').style.display="none";
			document.getElementById('f10').style.display="none";
			document.getElementById('f11').style.display="none";
			document.getElementById('f12').style.display="block";

			document.getElementById('h1').style.display="none";
			document.getElementById('h2').style.display="none";
			document.getElementById('h3').style.display="none";
			document.getElementById('h4').style.display="none";
			document.getElementById('h5').style.display="none";
			document.getElementById('h6').style.display="none";
			document.getElementById('h7').style.display="none";
			document.getElementById('h8').style.display="none";
			document.getElementById('h9').style.display="none";
			document.getElementById('h10').style.display="none";
			document.getElementById('h11').style.display="none";
			document.getElementById('h12').style.display="block";
			break;
		}
	}
}